<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我是路人甲</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" href="css/base.min.css"/>
    <style>
        .wrapper{
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: #222;
            left: 0;
            top: 0;}
        .wrapper img{
    width: 100%;}
.wrapper {display:table;}
.cell {
    display:table-cell;
}

        .tips{
            color: #aaa;
            font-size: 12px;
            line-height: 40px;
            right:5px;
            top: -40px;}
        #share{
            position: fixed;
            background: rgba(0, 0, 0, 0.5);
            width: 100%;
            height: 100%;
            overflow: hidden;}
        #share{
            display: none;}
        #share img{
            width: 100%;}
          a:link{color:#fff}
                    a{color:#fff}
                      a:visited{color:#fff}
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="cell f-pr">
            <img src="<?php echo $_GET['pic'];?>"/>
            <div class="f-tac f-p5 f-pr">
                <p class="tips f-pa">长按保存图片</p>
                <a href="pic.php" class="u-btn u-btn-lg u-btn-c2">我要制作</a> <a onclick="show()" class="u-btn u-btn-lg u-btn-c3">分享给好友</a>
            </div>

        </div>
    </div>
    <div id="share" onclick="hide()"><img src="fx.png" alt=""/></div>
    <script>
        var share=document.getElementById('share');
        function show(){
            share.style.display='block';
        }
        function hide(){
            share.style.display='none';
        }
    </script>
</body>
</html>